Piwik\Url D

Total Complexity 135
Dependencies 10
Dependents 72
Total lines 747
Lines of code 391
Logical lines of code 220
Comment lines 224
Methods 40
Properties 0

Methods 40

Method Rating Maintainability Complexity Lines of code
getCurrentScriptName()
A
47 15 34
getCurrentSchemeFromRequestHeader()
A
56 12 17
isValidHost()
A
47 9 34
isLocalUrl()
A
54 8 19
isHostInUrls()
S
55 7 21
getQueryStringFromParameters()
S
56 6 17
getHostFromServerVariable()
S
60 6 13
getHostFromServerNameVar()
S
60 6 13
saveHostsnameInConfig()
S
56 5 19
getHost()
S
63 5 10
redirectToUrlNoExit()
S
59 4 14
getCurrentHost()
S
60 4 13
isSecureConnectionAssumedByPiwikButNotForcedYet()
S
67 4 8
getCurrentQueryStringWithParametersModified()
S
62 3 11
isLocalHost()
S
62 3 11
getHostsFromConfig()
S
63 3 11
getCurrentQueryString()
S
65 3 9
getTrustedHostsFromConfig()
S
65 3 9
getCurrentScriptPath()
S
64 2 9
getCurrentScheme()
S
72 2 6
redirectToReferrer()
S
69 2 7
redirectToHttps()
S
67 2 8
getReferrer()
S
71 2 6
getHostSanitized()
S
70 2 6
getHostFromUrl()
S
68 2 7
getCurrentUrl()
S
71 1 6
getCurrentUrlWithoutQueryString()
S
72 1 5
getCurrentUrlWithoutFileName()
S
73 1 5
saveTrustedHostnameInConfig()
S
78 1 3
saveCORSHostnameInConfig()
S
78 1 3
setHost()
S
72 1 5
getArrayFromCurrentQueryString()
S
73 1 5
getQueryStringFromUrl()
S
79 1 3
redirectToUrl()
S
74 1 5
getTrustedHosts()
S
80 1 3
getCorsHostsFromConfig()
S
78 1 3
getAlwaysTrustedHosts()
S
80 1 3
getLocalHostnames()
S
78 1 3
isSecureConnectionLikelyNotUsed()
S
79 1 3
isPiwikConfiguredToAssumeSecureConnection()
S
75 1 4